{template '_header'}
{template 'fullownership/common'}
<script>document.title = "{php echo $this->set['texts']['become']}"; </script>
<div class='fui-page fui-page-current page-globonus-register'>
    {if is_h5app()}
    <div class="fui-header">
        <div class="fui-header-left">
            <a class="back"></a>
        </div>
        <div class="title">成为股东</div>
        <div class="fui-header-right"></div>
    </div>
    {/if}
    <div class='fui-content'>
        <img style='width:100%;position: relative' src="{if empty($set['regbg'])}../addons/ewei_shopv2/plugin/fullownership/template/mobile/default/static/images/bg.png{else}{php echo tomedia($set['regbg'])}{/if}" />
        {if empty($set['become'])}
        <div class='content-empty' >
            <i class='icon icon-money text-warning'></i>
            <br/><span class="text-default">{if empty($set['noregdesc'])}
			想成为股东吗？请立即联系我们！
			{else}
			{$set['noregdesc']}
			{/if}
			<br/>

		</span>
            <br/><a class="btn btn-warning" href="{php echo mobileUrl()}">去商城逛逛</a>
        </div>

        {else}


        {if $member['partnerblack']}
        <div class='content-empty' >
            <i class='icon icon-info text-danger'></i>
            <br/><span class="text-danger">禁止访问，请联系客服！</span>
            <br/><a class="btn btn-danger" href="{php echo mobileUrl()}">去商城逛逛</a>
        </div>

        {else}
        {if $set['become']==2 && $status==0}
        <div class='fui-list-group'>
            <div class='fui-list-group-title'><i class="icon icon-lights"></i> 友情提醒</div>
            <div class='fui-list'>
                <div class='fui-list-inner'>
                    <div class='text'>本店累计消费满 <span class="text-danger text-bold">{$order_totalcount}</span> 次，
                        才可成为&lt;<span class="text-danger text-bold">{$_W['shopset']['shop']['name']}</span>&gt;购物中心{php echo $this->set['texts']['partner']}，您已消费 <span class="text-danger text-bold">{$order_count}</span> 次，请继续努力！</div>
                </div>
            </div></div>
        <a class="btn btn-danger block" href="{php echo mobileUrl()}">继续去购物</a>
        {/if}
        {if $set['become']==3 && $status==0}
        <div class='fui-list-group'>
            <div class='fui-list-group-title'><i class="icon icon-lights"></i> 友情提醒</div>
            <div class='fui-list'>
                <div class='fui-list-inner'>
                    <div class='text'>本店累计消费满 <span class="text-danger text-bold">{$money_totalcount}</span> 元，
                        才可成为&lt;<span class="text-danger text-bold">{$_W['shopset']['shop']['name']}</span>&gt;购物中心{php echo $this->set['texts']['partner']}，您已消费 <span class="text-danger text-bold">{php echo intval($moneycount)}</span> 元，请继续努力！</div>
                </div>
            </div></div>
        <a class="btn btn-danger block external" href="{php echo mobileUrl()}">继续去购物</a>
        {/if}
        {if $set['become']==4 && $status==0 && $member['ispartner']==0}
        <div class='fui-list-group'>
            <div class='fui-list-group-title'><i class="icon icon-lights"></i> 友情提醒</div>
            <a href="{php echo mobileUrl('goods/detail',array('id'=>$buy_goods['id']))}">
                <div class='fui-list'>
                    <div class='fui-list-media'><img src="{php echo tomedia($buy_goods['thumb'])}" class='round' /></div>
                    <div class='fui-list-inner'>
                        <div class='text'>{$buy_goods['title']}</div>
                        <div class='text'>{$buy_goods['marketprice']}</div>
                    </div>
                </div>
            </a>
            <div class='fui-list'>

                <div class='fui-list-inner'>
                    <div class='text'>本店需购买此商品才可成为&lt;<span class="text-danger text-bold">{$_W['shopset']['shop']['name']}</span>&gt;购物中心
                        {php echo $this->set['texts']['partner']}，请现在去购买吧！</div>
                </div>
            </div>
        </div>
        <a class="btn btn-danger block" href="{php echo mobileUrl('goods/detail',array('id'=>$buy_goods['id']))}">现在就去购买</a>
        {/if}

        {if $member['partnerstatus']==1 && $member['ispartner']==1}
        <div class='content-info'>
            <i class='icon icon-roundcheck text-success'></i>
            <br/><span class="text-success">您的申请已经审核通过！</span>
            <br/><a class="btn btn-danger" href="{php echo mobileUrl()}">去商城逛逛</a>
        </div>
        {/if}
        {if $member['partnerstatus']==0 && $member['ispartner']==1}
        <div class='content-info' >
            <i class='icon icon-time'></i>
            <br/><span class="">谢谢您的支持，请等待审核！</span>
            <br/><a class="btn btn-danger" href="{php echo mobileUrl()}">去商城逛逛</a>
        </div>
        {/if}


        {if empty($member['partnerstatus']) &&  empty($member['ispartner']) && $set['become']=='1'}
        <div class="fui-cell-group" style='margin-top:0'>
            <div class="fui-cell-title">
                欢迎加入<span class='text-danger'>{$_W['shopset']['shop']['name']}</span>，请填写申请信息
            </div>

            {if $template_flag}

            {template 'diyform/formfields'}

            {else}

            <div class='fui-cell must'>
                <div class='fui-cell-label'>姓名</div>
                <div class='fui-cell-info'><input type="text" class='fui-input' id='realname' placeholder="请填写真实姓名，用于结算" value="{$member['realname']}" /></div>
            </div>

            <div class='fui-cell must'>
                <div class='fui-cell-label'>手机号</div>
                <div class='fui-cell-info'><input type="tel" class='fui-input' id='mobile' placeholder="请填写手机号码方便联系" value="{$member['mobile']}" /></div>
            </div>

            <div class='fui-cell'>
                <div class='fui-cell-label'>微信号</div>
                <div class='fui-cell-info'><input type="text" class='fui-input' id='weixin' placeholder="请填写微信号" value="{$member['weixin']}" /></div>
            </div>
            {/if}

            {if $set['open_protocol'] == 1}
            <div class="fui-cell-group">
                <div class="fui-cell small ">
                    <div class="fui-cell-info">

                        <label class="checkbox-inline">
                            <input type="checkbox" class="fui-checkbox-primary" id="agree" {if !empty($reg)}checked{/if}/> 我已经阅读并了解了<a id="btn-apply" style="color:#337ab7;">【{$apply_set['applytitle']}】</a>。
                        </label>

                    </div>
                </div>

            </div>

            <div class="pop-apply-hidden" style="display: none;">
                <div class="verify-pop pop">
                    <div class="close"><i class="icon icon-roundclose"></i></div>
                    <div class="qrcode">
                        <div class="inner">
                            <div class="title">{$set['applytitle']}</div>
                            <div class="text">{$set['applycontent']}</div>
                        </div>
                        <div class="inner-btn" style="padding: 0.5rem;">
                            <div class="btn btn-danger" style="width: 100%; margin: 0;">我已阅读</div>
                        </div>
                    </div>
                </div>
            </div>
            {/if}

        </div>
        <div class='btn btn-danger block btn-submit'>申请成为{php echo $this->set['texts']['partner']}</div>


        <div class='fui-list-group vip-group'>

            {if empty($set['register_bottom'])}

                <div class='fui-list'>
                    <div class='fui-list-media '><i class='icon icon-vip'></i></div>
                    <div class='fui-list-inner'>
                        <div class='subtitle'>{php echo $this->set['texts']['partner']}特权</div>
                    </div>
                </div>

                <div class='fui-list'>
                    <div class='fui-list-media'><i class='icon icon-money text-danger'></i></div>
                    <div class='fui-list-inner'>
                        <div class='subtitle'>坐享{php echo $this->set['texts']['bonus']}</div>
                        <div class='text'>成为{php echo $this->set['texts']['partner']}后，您可以享受平台营业额的{php echo $this->set['texts']['bonus']}收益</div>
                    </div>
                </div>

            {else if $set['register_bottom'] == 1}

                {if !empty($set['register_bottom_title1']) || !empty($set['register_bottom_content1'])}
                <div class='fui-list'>
                    <div class='fui-list-media '><i class='icon icon-vip'></i></div>
                    <div class='fui-list-inner'>
                        <div class='subtitle'>{$set['register_bottom_title1']}</div>
                        <div class='text'>{$set['register_bottom_content1']}</div>
                    </div>
                </div>
                {/if}

                {if !empty($set['register_bottom_title2']) || !empty($set['register_bottom_content2'])}
                <div class='fui-list'>
                    <div class='fui-list-media '><i class='icon icon-money text-danger'></i></div>
                    <div class='fui-list-inner'>
                        <div class='subtitle'>{$set['register_bottom_title2']}</div>
                        <div class='text'>{$set['register_bottom_content2']}</div>
                    </div>
                </div>
                {/if}

            {else if $set['register_bottom'] == 2}
                <div class="row">
                    {$set['register_bottom_content']}
                </div>
            {/if}

        </div>

        {/if}

        {/if}

        {/if}



    </div>
    <script language="javascript">
        require(['../addons/ewei_shopv2/plugin/fullownership/static/js/register.js'], function (modal) {
            modal.init("{$mid}",{php echo json_encode($apply_set)});

        })
    </script>
</div>
{template '_footer'}

<!--OTEzNzAyMDIzNTAzMjQyOTE0-->